package com.xuhao.examai.scoring.infrastructure.persistence;

import com.xuhao.examai.scoring.domain.models.ExamRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface ExamRecordRepository extends JpaRepository<ExamRecord, Long> {
	List<ExamRecord> findByUserId(Long userId);

	List<ExamRecord> findByExamId(Long examId);

	List<ExamRecord> findByUserIdAndExamId(Long userId, Long examId);

	List<ExamRecord> findByStatus(ExamRecord.Status status);
}
